@extends('admin.layout.layout')
@section('title')
<title>北京仁爱慈善后台</title>
@endsection
@section('con')
<title>北京市仁爱慈善后台</title>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">配置列表</h1>
    </div>
</div>
<div class="row">
     <div class="col-lg-12">
         <div class="panel panel-default">
             <div class="panel-heading">
                 列表
             </div>
             <!-- /.panel-heading -->
             <div class="panel-body">
                 <div class="dataTable_wrapper">
                     <form action="{{url('/admin/user/index')}}" method="get">
                         <div class="row">
                             <div class="col-sm-6">
                                 <div class="dataTables_length" id="dataTables-example_length">

                                 </div>
                             </div>
                             <div class="col-sm-6">
                                 <!-- <div id="dataTables-example_filter" class="dataTables_filter">
                                     <label>查询:<input type="search" name="keywords" value="" class="form-control input-sm" placeholder="" aria-controls="dataTables-example" /></label>
                                     <button class="btn" style="margin-left:5px;margin-top:0px;">搜索</button> -->
                                 </div>
                             </div>
                         </div>
                     </form>
                     <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                         <thead>
                             <tr>
                                 <th>标题</th>
                                 <th>LOGO</th>
                                 <th>操作</th>
                             </tr>
                         </thead>
                         <tbody>
                             @foreach($data as $k=>$v)
                             <tr class="odd gradeX">
                                 <td class="sorting_1">{{$v->title}}</td>
                                 <td><img src='{{url($v->logo)}}' width="100px;" alt="" ></td>
                                 <td class="center">
                                   <a href="{{url('admin/config/edit')}}"><button type="submit" class="btn btn-primary" style="margin-top:20px;">修改</button></a>
                                   <a href="{{url('admin/config/delete')}}"><button type="reset" class="btn btn-danger" style="margin-top:20px;">删除</button></a>
                                 </td>
                             </tr>
                             @endforeach
                         </tbody>
                     </table>
                 </div>
                 <div class="row">
                     <div class="col-sm-12">
                         <div class="dataTables_paginate paging_simple_numbers" id="dataTables-example_paginate">

                         </div>
                     </div>
                 </div>
             </div>
             <!-- /.panel-body -->
         </div>
         <!-- /.panel -->
     </div>
     <!-- /.col-lg-12 -->
</div>
@endsection
